import React, { Component, PropTypes } from 'react'
import { Link } from 'react-router'


class OrderGoodsList extends Component{
    render(){
        const {item} = this.props;
        const imgUrl = item.image ? item.image.split(",")[0]:item.image
        return (
            <li>
                <Link to="mall/orderDetail" query={{orderId:item.orderId}}>
                    <div className="mall-myOrder-two">
                        <span><img src={imgUrl}/></span>
                        <p>￥{item.price}<br/>x{item.buyNumber}</p>
                    </div>
                </Link>
            </li>
        )
    }
}

export default OrderGoodsList